<template>
    <div v-for="item in  searchAPiData">
        <router-link :to="'/xq/'+item.goods_id">
             <van-card  :price="item.goods_price"  :title="item.goods_name"
        :thumb="item.goods_big_logo?item.goods_big_logo:'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg'" />
        </router-link>
           
    </div>

</template>

<script setup>
import { searchAPi } from '@/api/api'
import { ref } from 'vue';
const searchAPiData = ref([])
searchAPi().then(res => {
    console.log('数据', res);
    searchAPiData.value = res.data.message.goods
})

</script>

<style lang="scss" scoped></style>